
#include<stdio.h>
#include<string.h>

int main()
{
	char arr[100] = {0};
	scanf("%s", arr);
	int i = 0;
	for (i = strlen(arr)-1; i >= 0; i--)
	{
		printf("%c", arr[i]);
	}
	printf("\n");
	
	return 0;	
} 

